home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / Getting Started / CodeWarrior Development / Installation Guide < prev   
Encoding:
Text File  |  1996-12-11  |  8.0 KB  |  121 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                     
  5. Installation Guide for CodeWarrior
  6. ODF Release  3                                                                                                                                                            
  7.  
  8. This document provides installation instructions for using ODF with Metrowerks CodeWarrior.
  9.  
  10.  
  11. Table of Contents
  12. -------------------------
  13. • Step 1 - Installing CodeWarrior Additions
  14. • Step 2 - Copying ODFDev
  15. • Step 3 - Making an alias to the ODF Library (and sample parts)
  16. • Step 4 - Rebuilding ODF
  17. • Step 5 - Compiling IDL files
  18.  
  19.  
  20.  
  21. Step 1 - Installing CodeWarrior Additions
  22.  
  23. This CodeWarrior Additions folder contains:
  24.                         - Headers and libraries for Cyberdog 1.1 
  25.                         - Headers and libraries for OpenDoc 1.1.2
  26.                         - ODFRC and SOMobjects™ TS plugin compilers
  27.  
  28. Move the content of these folders into the appropriate folders inside the 'MacOS Support' and 'CodeWarrior Plugins' folders.  
  29.  
  30. Cyberdog headers and libraries are now required to build some ODF components, such as the Internet layer or the ODFBitmap sample part. (Cyberdog is not required to run the ODFBitmap sample part.)
  31.  
  32.  
  33.  
  34. Step 2 - Copying ODFDev
  35.  
  36. Copy the ODFDev folder in its entirety to your local hard drive. This folder contains the ODF source code and the source code for ODF's example parts. The 'ODFDev:ODF:' subfolder contains configurations and project setups for building the ODF libraries. 
  37.  
  38. The ODF folder and the folders for each sample part contain multiple subfolders folders that specify the build configurations for each development environment. Inside these folders are project files and build scripts required for building ODF (or the sample part) with the specified development environment. Once you have copied the ODFDev folder to your local hard drive, you can throw away the folders for any development environments you are not using. 
  39.  
  40. The following table lists the folder name, the supported compiler, and the resulting configuration for the ODF library or part editor. 
  41.  
  42. Folder                                 Compiler                                         Resulting ODF Libraries                                                     Resulting Sample Part
  43.  
  44. CWPPCDebug              CodeWarrior                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  45. CWPPCRelease            CodeWarrior                PPC Release ODF Static Libraries            PPC Release Part Editor
  46. MCPPCDebug                    MrC                                                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  47. MCPPCRelease            MrC               PPC Release ODF Static Libraries         PPC Release Part Editor
  48.  
  49. CW68KDebug        CodeWarrior          68K Debug ODF Static Libraries           68K Debug Part Editor
  50. CW68KRelease      CodeWarrior          68K Release ODF Static Libraries         68K Release Part Editor
  51. SC68KDebug        Symantec 68K         68K Debug ODF Static Libraries           68K Debug Part Editor
  52. SC68KRelease      Symantec 68K         68K Release ODF Static Libraries         68K Release Part Editor
  53.  
  54. SLPPCDebug     CodeWarrior          PPC Debug ODF Shared Library                n/a
  55. SLPPCRelease   CodeWarrior          PPC Release ODF Shared Library                 n/a
  56. SL68KDebug        CodeWarrior          68K Debug ODF Shared Library                n/a
  57. SL68KRelease   CodeWarrior          68K Release ODF Shared Library           n/a
  58.  
  59.  
  60. The following table indicates which folders are necessary for each supported compiler. 
  61.  
  62. Folder                                      CW/PPC           CW/68K               Symantec68K                     MrC    
  63.  
  64. CWPPCDebug            Yes              No                 No                No
  65. CWPPCRelease          Yes              No                 No                No
  66. MCPPCDebug               No               No                 No                Yes
  67. MCPPCRelease             No               No                 No                Yes    
  68.  
  69. CW68KDebug               No               Yes                No                No    
  70. CW68kRelease             No               Yes                No                No    
  71. SC68KDebug               No               No                 Yes               No    
  72. SC68KRelease          No               No                 Yes               No    
  73.  
  74. SL68KDebug            No               Yes                Yes               No    
  75. SL68KRelease             No               Yes                Yes               No    
  76. SLPPCDebug               Yes              No                 No                Yes    
  77. SLPPCRelease             Yes              No                 No                Yes    
  78.  
  79.  
  80.  
  81. Step 3 - Making an alias to the ODF library (and sample parts).
  82.  
  83. To make debugging with ODF easier, you should make an alias to the debug version of the ODF shared library and put that alias into your Editors folder. Debuggers use this alias during debugging sessions to trace your code's execution into the ODF shared library.
  84.  
  85. If your ODFDev folder is on a different volume than your system folder, you can create an Editors folder at the root level of your development hard drive and put the alias there. (OpenDoc does not allow you to put aliases to files on different volumes in the Editors folder.)
  86.  
  87. Note: The ODFLibrary (or an alias to it) must be located in your Editors folder. Part editors that were built with ODF require the existence of this library and will not run without it.
  88.  
  89. The debug version of the ODF shared library (ODFLibrary) is already built and is located in the 'ODFDev:ODF:SLPPCDebug:Bin:' folder for PPC and in the 'ODFDev:ODF:SL68KDebug:Bin:' for 68K. 
  90.  
  91. For convenience, you can also make an alias to the symbol files for the ODFLibrary (ODFLibrary.xSYM) and put it on your desktop. When you want to load the symbol file into the CodeWarrior debugger, you can double-click on the alias.
  92.  
  93. IMPORTANT: Make sure that the release version of the ODFLibrary or any of the ODF sample parts are not installed on your machine while you are attempting to trace through either the ODFLibrary or sample parts. The chances are good that you will not get the right library. OpenDoc searches for the first part editor and library that matches its search parameters. The release version of the ODF libraries and samples are simply optimized versions that do not have internal debugging information, such as Macsbug symbols or assertions.
  94.  
  95.  
  96.  
  97. Step 4 - Rebuilding ODF
  98.  
  99. Although ODF is supplied pre-built, debugging will be easier if you rebuild it once to create symbol files that contain the correct path information for your hard drive. If you do not do this, the CodeWarrior debugger will ask you for the location of any ODF files it cannot find during your debug session.
  100.  
  101. To rebuild ODF, run the ODF Builder (CW) application, located in the ODFDev folder. By default it will rebuild both PPC debug and PPC release versions of ODF and all the examples. You can also use the ODF Builder application to rebuild the 68K projects or prevent the building of the examples. 
  102.  
  103. The ODF Builder can rebuild both PPC and 68K version of the ODF Shared Library. However, you must remember that you are rebuilding the ODFLibrary only for debugging convenience (to prevent the Metrowerks debugger from asking you where ODF files are located). When you ship your part, you must include the release version of the ODFLibrary included in this distribution, and not the one you rebuilt.
  104.  
  105. You can use the MPW script CWBuildAllSOM to rebuild all ODF '.xh' and '.xih' files. Because ODF already provides those files it is not necessary for you to use this script at all. It is just provided as a convinience in case it is needed.
  106.  
  107.  
  108.  
  109. Step 5 - Compiling IDL files
  110.  
  111. IMPORTANT: this step is optional unless you are writing an OpenDoc extension or are going to use SOM directly. Building an ODF part doesn't require any SOM compilation. If you are not sure then you can safely skip this step.
  112.  
  113. To compile IDL files, you must use the SOM compiler. The SOM compiler currently runs only as an MPW or ToolServer tool and is part of the ETO package. When using CodeWarrior you should install ToolServer which is also available from CodeWarrior Gold Reference.
  114.  
  115. Please see the document "Compiling IDL Files" located in the "Documentation:Development Notes:" folder and the CodeWarrior Build Guide for information about IDL files and setting up the SOM compiler.
  116.  
  117.  
  118.  
  119.  
  120. © 1993 - 1996 Apple Computer, Inc. All rights reserved.
  121. Apple, the Apple Logo, Macintosh, and OpenDoc are trademarks of Apple Computer, Inc., registered in the United States and other countries.